package demo3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class person
{
    @Autowired
    @Qualifier("winter") // 用于指定注入的Bean名称，解决同一类型多个Bean的注入冲突
//    private shirt s;
//    private sweater sw;
    clothes clo;

    public void play()
    {
//        shirt s=new shirt();
        clo.wear();
        System.out.println("playgogogo");
    }
}
